home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / solaris2.faq < prev    next >
Encoding:
Internet Message Format  |  1994-04-15  |  64.7 KB

  1. Subject: Solaris 2 Frequently Asked Questions (FAQ) 1.37
  2. Newsgroups: comp.unix.solaris,comp.sys.sun.admin,comp.answers,news.answers
  3. From: casper@fwi.uva.nl (Casper H.S. Dik)
  4. Date: 13 Apr 1994 16:05:33 GMT
  5.  
  6. Archive-name: Solaris2/FAQ
  7. Version: 1.37
  8. Last-Modified: 1994/04/13 16:04:19
  9. Maintained-by: Casper Dik <casper@fwi.uva.nl>
  10.  
  11.  
  12. The following is a list of questions that are frequently asked about
  13. Solaris 2.x.  You can help make it an even better-quality FAQ by writing a
  14. short contribution or update and sending it BY EMAIL ONLY to me.
  15. Thanks!
  16.  
  17. I've added an index of questions and marked changed(*) and added
  18. questions(+).  The FAQ is being reorganised, time permitting.
  19. The index is generated automatically, so there may be errors there.
  20. Not all questions are in the section they belong in. Suggestions on
  21. how best to subdivide/order the FAQ are welcome.
  22.  
  23.  
  24.   1. GENERAL
  25.     1.1) What's a Solaris anyway?
  26.     1.2) Why should I care? Why should I upgrade?
  27.     1.3) Should I move to Solaris 2.x now, or later, or never?
  28.     1.4) What is Solaris 2? Is it really SVR4 based?
  29.    *1.5) What machines does Solaris 2.x run on?
  30.     1.6) Will my XXX applications from 4.1.x run on Solaris 2?
  31.     1.7) Will my XXX applications from SVR3 on the 386 run on Solaris 2/Intel?
  32.     1.8) Where has the XXX command gone now?
  33.     1.9) When I upgrade, should I use SunInstall "upgrade", or start over?
  34.    *1.10) Is Solaris 2.x reliable/stable enough to use?
  35.    *1.11) Why do some people dislike Solaris2?
  36.     1.12) Do some people *like* Solaris2?
  37.   2. MORE INFO
  38.    *2.1) How can I RTFM when I don't have it anymore?
  39.     2.2) Why is "man -k" so confused? 
  40.     2.3) What Software is available for Solaris 2.x?
  41.     2.4) What FTP sites do I need to know about?
  42.     2.5) What other FAQ's do I need to know about?
  43.     2.6) What mailing lists should I get?
  44.     2.7) What books should I read?
  45.   3. SYSTEM ADMINISTRATION
  46.     3.1) How much disk space do I need to install Solaris 2?
  47.     3.2) How can I convert all my local changes that I've made over the years
  48.     3.3) What are "packages"?
  49.     3.4) Why can't I write in /home?
  50.     3.5) Why can't I access CDs or floppies?
  51.     3.6) What is this junk mail about an error in the crontab entry?
  52.     3.7) Why are there no passwords in /etc/passwd?
  53.     3.8) Why can't I rlogin/telnet in as root?
  54.     3.9) How can I set up anonymous FTP?
  55.     3.10) How can I print from a Solaris 2 (or any System V Release 4) system to
  56.     3.11) What if I'd rather use the old familiar BSD-style line printer system?
  57.     3.12) What happened to /dev/MAKEDEV? How do I add devices?
  58.     3.13) What happened to /etc/rc and /etc/rc.local?
  59.     3.14) Speaking of that, why are there two versions of shutdown?
  60.     3.15) When will somebody publish a package of the BSD (4.3BSD Net2) "init",
  61.     3.16) What has happened to getty? What is pmadm and how do you use it?
  62.     3.17) How do I get the screen to blank when nobody's using it?
  63.     3.18) And what about screendump, screenload and clear_colormap?
  64.     3.19) Where did etherfind go?
  65.     3.20) Can I run SunOS4.1.x on my SPARC Classic or LX?
  66.     3.21) The "find" program complains that my root directory doesn't exist?
  67.     3.22) I'm having troubles with high-speed input on the Sparc serial ports.
  68.     3.23) How do I make ksh or csh be the login shell for root?
  69.     3.24) What is this message: "automount: No network locking on thathost,
  70.     3.25) How do I make Solaris2 use my Toshiba MK538FB drives?
  71.    *3.26) How do I make Solaris2 use my old ADAPTEC ACB-4000 and Emulex MD-21 disks?
  72.    *3.27) Why are there so many patches for Solaris 2.3? It's only been out a month!
  73.    +3.28) What are the ``mandatory'' patches I keep hearing about?
  74.     3.29) Where do I get patches from?
  75.     3.30) Why does installing patches take so much space in /var/sadm?
  76.     3.31) Do I need to back out previous versions of a patch?
  77.    +3.32) How can I have more than 48 pseudo-ttys?
  78.    +3.33) I messed up /etc/system, now I can't boot.
  79.   4. NETWORKING
  80.    *4.1) Can I use DNS with Solaris 2.x?
  81.     4.2) How do I use DNS w/o using NIS or NIS+?
  82.    *4.3) Speaking of nsswitch.conf, what is it?
  83.     4.4) So what does [NOTFOUND=return] in nsswitch.conf mean, and where does it go?
  84.    +4.5) Can I run a nis/yp server under Solaris 2.x?
  85.    +4.6) Can I run NIS+ under Solaris 1 (SunOS 4.1.x)
  86.    +4.7) With NIS+ how do I find out which machine a client is bound to?
  87.    +4.8) Ypcat doesn't work on the netgroup table on a NIS+ server, why?
  88.    +4.9) Why is rpc.nisd such a memory pig according to ps?
  89.   5. TROUBLE SHOOTING
  90.     5.1) Why can't I run Answerbook on a standalone machine?
  91.     5.2) Why can't I run filemgr, I get ``mknod: permission denied''?
  92.    *5.3) Why do I get isinf undefined when linking with libdps?
  93.    +5.4) I can't get PPP to work between Solaris 2.3 and other platforms.
  94.    +5.5) Using compat mode for passwd doesn't work in 2.3?
  95.    +5.6) Why do I get __builtin_va_alist or __builtin_va_arg_incr undefined?
  96.    +5.7) My machine hangs during the boot process.  It seems related to ps.
  97.   6. SOFTWARE DEVELOPMENT
  98.     6.1) Where is the C compiler or where can I get one?
  99.     6.2) What about the linker, the assembler and make?
  100.     6.3) What do I need to compile X11R5?
  101.     6.4) What happened to NIT? What new mechanisms exist for low-level network access?  
  102.     6.5) Where are all the functions gone that used to be in libc?
  103.     6.6) I'm still missing some functions: bcopy, bzero and friends.
  104.     6.7) Can I use the source compatibility package to postpone porting?
  105.     6.8) Why doesn't readdir work?
  106.   7. ACKNOWLEDGEMENTS
  107.  
  108. 1. GENERAL
  109.  
  110. 1.1) What's a Solaris anyway?
  111.  
  112.     Solaris(tm) is Sun's name for their UNIX-based user environment,
  113.     including the UNIX(tm) operating system, window system (X11-based),
  114.     and other stuff too.
  115.  
  116.     Solaris 1.x is a retroactive (marketing?) name for SunOS4.1.x (x>=1),
  117.         a version of UNIX that is BSD-like with some SVR4 features,
  118.         along with OpenWindows 3.0.
  119.     Solaris 2.x (which is what most everybody means by "Solaris")
  120.         includes SunOS5.x, which is an SVR4-derived UNIX,
  121.         along with OpenWindows 3.x, tooltalk, and other stuff.
  122.     For more details, see the chart in the next-to-next question.
  123.  
  124. 1.2) Why should I care? Why should I upgrade?
  125.  
  126.     Solaris 2 is more compatible with the rest of the UNIX industry.
  127.     Other major UNIX vendors including IBM, HP, SGI, SCO, and others
  128.     are based on System V rather than on BSD (though some of them
  129.     are on SVR3, not SVR4). All but one commercial PC-based UNIXes 
  130.     are System V based (and mostly SVR4); the only commercial exception
  131.     is from a small but interesting firm called BSDI.
  132.  
  133.     Solaris 2 is where Sun has been putting almost all its development
  134.     for the last few years now. There will be no new development on
  135.     SunOS4; already many of Sun's add-on software is only available
  136.     for Solaris 2. Solaris 2 is the only MP-capable SunOS on the SS10.
  137.  
  138.     Solaris 2 is required to run Wabi, Sun's exciting new
  139.     MS-Windows emulator.
  140.  
  141.     Solaris 2.3 features a standard X11R5 release of The X Window
  142.     System, a benefit for those who didn't like NeWS or the 
  143.     V2/V3 OpenWindows server. (It's still called OpenWindows, but
  144.     it is the X11R5 server with Adobe DPS added in).
  145.  
  146.     Solaris 2 is more standards-compliant than Solaris 1/SunOS 4.
  147.  
  148. 1.3) Should I move to Solaris 2.x now, or later, or never?
  149.  
  150.     That depends - on you, your situation, your application mix, etc.
  151.     Some year SunOS4.1.x will go the way of the 3/50 - it'll still
  152. er support it.
  153.  
  154.     You don't have to upgrade immediately, but you should be
  155.     planning your upgrade path by now.
  156.  
  157. 1.4) What is Solaris 2? Is it really SVR4 based?
  158.  
  159.     Solaris 2 is an "operating environment" that includes the
  160.     SunOS 5.x operating system and the OpenWindows 3.x window
  161.     environment.
  162.  
  163.     SunOS 5.x are based on USL's SVR4.0. SVR4.0, in turn, was
  164.     developed jointly by AT&T and Sun while Sun was developing 4.1.0,
  165.     which is why things like RFS, STREAMS, shared memory, etc.,
  166.     are in SunOS 4.1.x, and why things like vnodes, NFS and XView
  167.     are in SVR4.0. (RFS, by the way, is being dropped effective
  168.     with Solaris 2.3).
  169.  
  170. 1.5) What machines does Solaris 2.x run on?
  171.  
  172.     Solaris 2.0 only ran on desktop SPARCstations and a few other Sun
  173.     machines.
  174.  
  175.     Solaris 2.1 and later comes in two flavors, SPARC and "x86".
  176.  
  177.     Solaris 2.1 (and 2.2, ...) for SPARC run on all SPARCstations and
  178.     clones, as well as all models of the Sun-4 family. The old FPU
  179.     on the 4/110 and 260/280 is not supported, so floating point
  180.     will be SLOW, but it does work.
  181.  
  182.     A Solaris port for the PowerPC is underway.  It is not
  183.     expected to be completed this year.  It is also unknown
  184.     at this time what PowerPC hardware will be supported.
  185.  
  186.     Solaris 2.1 for x86 has been released to end users.
  187.     It runs on a wide range of high-end PC-architecture machines.
  188.     "High-end" means: 16MB of RAM and an 80486 (or 33MHz or faster
  189.     80386DX).  It will not run on your 4 MB 16MHz 386SX, so don't
  190.     bother trying! Also, floating point hardware (80387-style) is
  191.     absolutely required in 2.1.  Starting with Solaris 2.4 for
  192.     x86, a fp Coprocessor is no-longer required, though still
  193.     recommended.  All three buses are supported: ISA, EISA, MCA.
  194.  
  195.     To summarize all this, Jim Prescott gave this chart, which I've updated:
  196.     Solaris    SunOS      OpenWin        Comments
  197.     1.0    4.1.1B      2.0
  198.         4.1.1_U1  2.0        sun3 EOL release (not named Solaris)
  199.     1.0.1    4.1.2      2.0        (6[379]0-1[24]0 MP)
  200.     1.1    4.1.3      3.0        SP Viking support
  201.     1.1C    4.1.3C      3.0?        Downgrade Classic or LX from S2 to S1.
  202.     1.1.1    4.1.3_U1  3.0?        4.1.3 + fixes + Classic/LX support
  203.     2.0    5.0      3.0.1        sun4c only
  204.        2.1SPARC    5.1      3.1         Dec '92
  205.        2.1 x86    5.1      3.1         May '93
  206.        2.2SPARC    5.2      3.2        May '93
  207.        2.3SPARC    5.3      3.3        Nov '93
  208.                 OpenWin 3.3 (previously called OpenWin 4.0,
  209.                 recently renamed so as to track the OS minor
  210.                 release number) is X11R5 based: Display
  211.                 PostScript instead of NeWS, no SunView.
  212.                 It is still primarily OPEN LOOK.
  213.                 The Spring 1994 OpenWin will be Motif
  214.                 and COSE-based.
  215.     2.3 edition II SPARC    Special Solaris 2.3 distribution for
  216.                 Voyager and SparcStation 5
  217.     2.4    SPARC/x86    Formerly known as 2.4, then known as 2.3.2,
  218.                 now again called 2.4.
  219.                 From this moment on, the SPARC and x86
  220.                 releases will be in sync. Q3 '94
  221.  
  222. 1.6) Will my XXX applications from 4.1.x run on Solaris 2?
  223.  
  224.     There is quite a bit of support in SunOS 5.x for running 4.1.x
  225.     binaries in an emulation mode called "Binary Compatibility"
  226.     (BCP).  This works by dynamically linking the 4.1.x binaries
  227.     with a shared library that emulates the 4.1.x binary interface
  228.     on top of 5.x, so there is some overhead. Programs will only
  229.     work if they were dynamically linked (statically linked
  230.     binaries run in 2.3, but with some extra restrictions),
  231.     and if they meet certain other criteria. Best bet:
  232.     try it and see.
  233.  
  234.     Be aware, though, that Sun WILL drop the binary compatibility 
  235.     package some year.  Try to wean yourself and your users from
  236.     depending on it, even if it means beating on your software
  237.     vendors to offer "native" Solaris2 applications.
  238.  
  239. 1.7) Will my XXX applications from SVR3 on the 386 run on Solaris 2/Intel?
  240.  
  241.     As with SPARC, there is an emulation mode that should run the
  242.     majority of well-behaved SVR3 and Xenix binaries. I've not
  243.     had time to test it.
  244.  
  245.     Applications from any other vendor's standards-conforming 
  246.     386/486 SVR4 should also run.
  247.  
  248.     However, some vendors have made incompatible changes to their
  249.     SVR4 release and programs linked on those versions may not work.
  250.  
  251. 1.8) Where has the XXX command gone now?
  252.  
  253.     There are too many of these changes to include in this FAQ, but
  254.     here are some key ones:
  255.  
  256.         a. locations are often different
  257.                  hostid         /usr/ucb/hostid
  258.                  whoami         /usr/ucb/whoami
  259.                  hostname       /usr/ucb/hostname (or use uname -n)
  260.  
  261.         b. some old commands don't exist or have replacements
  262.  
  263.                  4.1.X          Solaris 2.X
  264.  
  265.                  pstat -s       swap -s  (how much swap space?)
  266.                  dkinfo         /usr/sbin/prtvtoc raw_dev_name
  267.                  trace          truss
  268.                  mount -a       mountall
  269.                  exportfs       share
  270.                  bar            cpio -H bar (read only)
  271.  
  272.     This information can be found in the Solaris 2.x Transition Guide - 
  273.     Appendix A (commands), Appendix B (system calls), Appendix C (files).
  274.  
  275.     This guide has undergone some changes from 2.0 -> 2.1 and beyond.
  276.     Several manuals have ended up being combined into this single
  277.     manual. This manual discusses adminstrative transition and
  278.     developer transition issues.
  279.  
  280.     The command "whatnow" (for Solaris 2.x) is included in the
  281.     "Admigration Toolkit" package (see below). The Admigration
  282.     toolkit can be obtained from:
  283.  
  284.         opcom.sun.ca:/pub/AMToolkit-2.2a.*
  285.     
  286.     Sample output:
  287.         % whatnow hostname
  288.         hostname                                        4.x command only 
  289.         hostname        /usr/ucb/hostname               part of SCP package
  290.         hostname        /usr/bin/uname -n               alternate command
  291.  
  292.     The whatnow command is limited in that it may point to
  293.     one command which may only implement a subset of the old
  294.     command (e.g., pstat points to sar, while pstat -s is identical
  295.     to swap -s)
  296.  
  297. 1.9) When I upgrade, should I use SunInstall "upgrade", or start over?
  298.  
  299.     You can't do a SunInstall "upgrade" from 4.1.x to Solaris2.
  300.     You can use the Admigration toolkit (q.v.) to help you move
  301.     from SunOS 4.1.x (Solaris 1, actually) to Solaris 2.
  302.  
  303.     If you're moving from Solaris 2.1 to 2.2, or 2.2 to 2.3, ...,
  304.     then you can use "upgrade" to preserve your existing partitions
  305.     and local changes (including pkgadd!!), though it runs very
  306.     slowly (about 1.5-2x the time for a reinstall) and does require
  307.     that you have enough free space in / and /usr - make these big
  308.     when you first install!  If you run out of space in one of
  309.     your partitions, you can always remove some components.  Those
  310.     will not be upgraded and can be installed elsewhere after
  311.     initial upgrade (e.g., you can remove OW, Xil, Dxlib, manual
  312.     pages, etc)
  313.  
  314.     There is no need to backout patches before upgrading.
  315.     In 2.2, the system would back them out for you, in 2.3 it
  316.     won't back out the patches but removes them without a trace.
  317.  
  318.     The upgrade doesn't work as well as a full install.
  319.     E.g., the upgrade from 2.x (x<3) to 2.3 will leave
  320.     aliases for all your ptys in /devices/pseudo.
  321.  
  322. 1.10) Is Solaris 2.x reliable/stable enough to use?
  323.  
  324.     The consensus seems to be that yes, it is, for many applications
  325.     and most users. Your mileage may vary.
  326.  
  327.     Binary compatibility was much improved in 2.3.  That will help
  328.     transition somewhat.  The performance of 2.3 is adequate, though
  329.     some parts of the system are still slower than SunOS 4.1.x.
  330.     Solaris 2.3 is much more stable on MP machines than 2.2.
  331.     The Solaris 2.3 version of OpenWindows is much faster and much
  332.     more stable than the versions shipped with SunOS 4.1.x.
  333.  
  334.     Solaris 2.1 and earlier should really be avoided.  Solaris 2.2
  335.     should be avoided too, but some people need to stick to it
  336.     until some applications get ported (2.2 is the last release
  337.     with NeWS)
  338.  
  339.     Solaris 2.3 still has some problems on high-end MP systems with
  340.     large numbers of interactive users.  Solaris 2.4 promises much
  341.     more scalable multi-processing.
  342.  
  343. 1.11) Why do some people dislike Solaris2?
  344.  
  345.     There is a number of reasons why people dislike Solaris.
  346.  
  347.     1) Change.  In general people dislike change.  Change requires
  348.     relearning and retraining.  Old system administration practices
  349.     no longer work.  Commands have been replaced by other commands,
  350.     some commands behave differently.  And they ask why the change was
  351.     necessary.  SunOS 4.x worked for them.
  352.  
  353.     2) Lack of migration support.  Sun did not provide a lot of
  354.     tools to ease migration.  Many applications wouldn't run in the
  355.     binary compatibility mode.  The source compatibility mode was
  356.     probably compatible with some OS, but it certainly wasn't SunOS.
  357.     Lot of public domain and third party stuff needed wasn't
  358.     immediately available for Solaris.  NIS+, buggy, resource hungry
  359.     and instable replaced NIS in incompatible ways.
  360.  
  361.     3) Missing functionality.  When people migrate, they at first
  362.     don't tend to notice new functionality.  Instead, they stumble
  363.     upon missing functionality such as screenblank, clear_colormap
  364.     and the like.
  365.  
  366.     4) Slow and buggy.  The initial Solaris releases didn't perform
  367.     at all well and were extremely instable.  This is improving
  368.     rapidly, but SuperSPARC MP machines need a heavily patched 2.3
  369.     to work reliably.
  370.  
  371. 1.12) Do some people *like* Solaris2?
  372.  
  373.     Yes!  There are improvements in Solaris 2.x.
  374.  
  375.     1) OpenWindows 3.3 (in Solaris 2.3).  Includes X11R5 and
  376.     Display PostScript.
  377.  
  378.     2) ANSI-C and POSIX development environment.
  379.  
  380.     3) Multithreaded kernel and real threads.
  381.  
  382.     4) True multi-processing.
  383.  
  384.     5) Goodies: vold, admintool and Wabi.
  385.  
  386. 2. MORE INFO
  387.  
  388. 2.1) How can I RTFM when I don't have it anymore?
  389.  
  390.     "RTFM" is an old saying: Read The "Fine" Manual.  Sun still
  391.     sell printed manuals, but doesn't automatically distribute
  392.     them.  As with all real UNIX systems, you do get a full set of
  393.     online "man" pages. A smaller, lighter, bookshelf-friendly :-)
  394.     CD-ROM called "The AnswerBook"(tm) contains all the printed
  395.     documents in machine-readable (PostScript) form, with hypertext
  396.     capabilities and a keyword search engine. 90% of your
  397.     introductory questions are answered therein!
  398.  
  399.     In Solaris 2.x the Answerbook set gets increasingly more
  400.     divided into pieces.  It is currently (2.3) split over 4 CDs
  401.  
  402.         Solaris 2.x CD:
  403.         Solaris 2.x User AnswerBook
  404.  
  405.         Solaris 2.x administrator answerbook
  406.         Solaris 2.x System Administrator AnswerBook
  407.         Solaris 2.x on Sun Hardware AnswerBook
  408.         Solaris 2.x Reference Manual AnswerBook
  409.  
  410.         Solaris 2.x Software Developer Kit
  411.         All programming manuals.
  412.  
  413.         Solaris 2.x Driver Developer Kit
  414.         Device driver developer manuals.
  415.  
  416.     There is some overlap between CDs.
  417.  
  418.     As distributed with 2.1 and 2.2, the Answerbook search engine
  419.     runs only with the OpenWindows ("xnews") server, not with MIT
  420.     X11. This changed in 2.3. If you are using the MIT server
  421.     instead of what Sun provides, you'll have to use one of several
  422.     "answerbook workaround" scripts that are in circulation. The
  423.     AnswerBook distributed with 2.3 and later runs with the OW3.3
  424.     X11R5+DPS server, so it should display on any X11+DPS server,
  425.     such as on DEC, IBM and SGI workstations.
  426.  
  427.     You should buy (or print from within Answerbook) at least the
  428.     reference manual and the System and Network Administration
  429.     books, because if your system becomes disabled you won't be
  430.     able to run the Answerbook to find out how to fix it...
  431.  
  432. 2.2) Why is "man -k" so confused? 
  433.  
  434.       Solaris man uses a manual page index file called "windex" in
  435.       place of the old "whatis" file. You can build this index with
  436.         cd <man-page-directory>; catman -w -M .
  437.  
  438.       But, in 2.1, this will result in numerous "line too long" messages 
  439.       and a bogus windex file in /usr/share/man, and a core dump in
  440.       /usr/openwin/man. (In 2.2, catman works in /usr/share/man, but
  441.       says "line too long" in /usr/openwin/man).  To add injury to
  442.       insult, "man" normally won't show you a man page if it can't find
  443.       the windex entry, even though the man page exists.
  444.  
  445.       There's a "makewhatis" script in /usr/openwin/man that works
  446.       better than catman. But watch it - by default it searches files
  447.       in /usr/man, not in openwin, and it only looks in some predefined
  448.       man subdirectories. Try changing its "for ..." command to 
  449.       "for i in man*", then use it like this:
  450.         cd /usr/share/man; /usr/openwin/man/makewhatis .
  451.         cd /usr/openwin/man; /usr/openwin/man/makewhatis .
  452.  
  453.       Still (!), the openwin windex file is somewhat hosed (try "man
  454.       answerbook" :-(.  You can always delete the bogus lines manually...
  455.       or, you can alias man to "man -F", forcing it to look for the
  456.       bloody file like you asked.
  457.  
  458.       But wait, there's more! To see the read(2) man page, you can't
  459.       just type "man 2 read" anymore - it has to be "man -s 2 read".
  460.       Or, alias man to this little script:
  461.  
  462.         #!/bin/sh
  463.         if [ $# -gt 1 -a "$1" -gt "0" ]; then
  464.             /bin/man -F -s $*
  465.         else
  466.             /bin/man -F $*
  467.         fi
  468.  
  469. 2.3) What Software is available for Solaris 2.x?
  470.  
  471.     Most commercial software that ran on 4.x either will run in BCP
  472.     mode, or is available for Solaris 2.x, or is being ported now.
  473.     Solaris 2.3 BCP mode finally supports statically-linked executables.
  474.  
  475.     You can obtain a list of official 3rd party porting
  476.     commitments, maintained by Sun's "Solaris Demand Center"
  477.     (whatever that is), by sending electronic mail to
  478.     "solaris2apps@sun.com" -- this is an automatic reply server.  The list
  479.     shows what third party applications are currently available for 
  480.     Solaris, and lists expected dates for many more.
  481.  
  482.     A list of freeware (some "public domain", but mostly copyright-
  483.     but-freely-distributable) [as well as commercial software??]
  484.     that has been ported to Solaris 2.x
  485.     is posted monthly to the newsgroup comp.unix.solaris by
  486.     ric@updike.sri.com (Richard Steinberger). Look for this:
  487.  
  488.         Subject: Solaris SW list.  Monthly Post.
  489.  
  490.     If you can't wait, the list is also available via anonymous FTP
  491.     from updike.sri.com.
  492.  
  493. 2.4) What FTP sites do I need to know about?
  494.  
  495.     SunSite (sunsite.unc.edu) - Sun sponsors an FTP site at the
  496.     University of North Carolina. Lots of good stuff here.
  497.  
  498.     ftp.x.org (or export.lcs.mit.edu) - the master X11 site
  499.  
  500.     ftp.uu.net    - UuNet communication archives
  501.  
  502.     OpCom. (opcom.sun.ca) - run by Sun Microsystems' OpCom group - lots 
  503.     of stuff. Here is some of the stuff that's online:
  504.  
  505.     pub/AMToolkit.*    - the Administration Migration (4.1.x to Solaris 2)
  506.               Toolkit
  507.  
  508.     pub/binaries    - binaries/man pages for Solaris 2.0 native binaries.
  509.  
  510.     pub/newsletter  - issues of the monthly OpCom newsletter.
  511.  
  512.     pub/docs        - assorted documentation, papers, and other information.
  513.             - all of the RFCs
  514.  
  515.     pub/drivers     - information related to device driver writing under
  516.               under Solaris 2.0 as well as a skeleton SCSI driver.
  517.  
  518.     ls-lR.Z         - compressed recursive listing of files available
  519.               on the server.
  520.  
  521.     pub/tars        - compressed tars.
  522.  
  523.     pub/tmp         - place for uploading things to the server.
  524.  
  525.     pub/R5          - the unadultered MIT x11r5 distribution.
  526.  
  527.     pub/x11r5       - port of X11r5 to Solaris 2.0, binaries, libraries
  528.               and headers.  A compressed tar of this tree can
  529.               be found in tars.
  530.  
  531.     prep.ai.mit.edu and the GNU mirrors
  532.  
  533.     pub/gnu/sparc-sun-solaris2    - recent gcc binaries for SPARC
  534.     pub/gnu/i486-sun-solaris2    - recent gcc binaries for i486
  535.  
  536. 2.5) What other FAQ's do I need to know about?
  537.  
  538.     All of them :-). But in particular you should see these FAQ's:
  539.     
  540.     1) Newsgroups: comp.sys.sun.admin,comp.sys.sun.misc,comp.unix.solaris,
  541.         comp.answers,news.answers
  542.     Subject: FAQ: Sun Computer Administration Frequently Asked Questions
  543.  
  544.     2) The "Solaris 2 Porting FAQ" from David Meyer in this newsgroup.
  545.     For those developing or compiling software.
  546.     Archive-name: Solaris2/Porting.
  547.  
  548.     3) The "Solaris 2 x86 FAQ" from J. S. Caywood in this newsgroup.
  549.     Deals with Intel-("x86")-specific issues on Solaris 2.
  550.     Archive-name: Solaris2/x86 (proposed).
  551.  
  552.     4) comp.windows.open-look - Anything related to OpenWindows or the
  553.         OPEN LOOK Graphical User Interface.
  554.  
  555.     5) The Sun-Managers mailing list (see below) has its own FAQ,
  556.         maintained by John DiMarco <jdd@cdf.toronto.edu>.
  557.         FTP from ra.mcs.anl.gov in the sun-managers directory.
  558.  
  559.     6) See also the "Solaris SW list. Monthly Post" above and the
  560.         "whatlist" file.
  561.  
  562. 2.6) What mailing lists should I get?
  563.  
  564.     First, read all the USENET newsgroups with "sun" in their name :-)
  565.  
  566.     1) The Florida SunFlash is a "closed" mailing list for Sun owners.
  567.     It contains mostly press releases from Sun and third-party
  568. formation on conferences such as
  569.     the Solaris Developer's Conference as well.  It is normally
  570.     distributed regionally - to find out about a mail point in your
  571.     area, or for other information send mail to info-sunflash@Sun.COM.
  572.  
  573.     Subscription requests should be sent to sunflash-request@Sun.COM.
  574.     Archives are on solar.nova.edu, ftp.uu.net, sunsite.unc.edu,
  575.     src.doc.ic.ac.uk and ftp.adelaide.edu.au
  576.  
  577.     2) The Sun Managers list is an unmoderated mailing list for
  578.     *emergency-only* requests. Subscribe and listen for a while,
  579.     and read the regularly-posted Policy statement BEFORE sending
  580.     mail to it, and to get a feel for what kinds of traffic it carries.
  581.     Write to sun-managers-request@eecs.nwu.edu.
  582.  
  583. 2.7) What books should I read?
  584.  
  585.     O'Reilly & Associates specializes in UNIX books.  Their "UNIX
  586.     In A Nutshell" has been updated for SVR4 and Solaris 2.0.  Get
  587.     their catalog by calling 800-998-9938 (1-707-829-0515) 7AM to
  588.     5PM PST.
  589.  
  590.     SunSoft Press carries books specific to Solaris 2. Look for the
  591.     inset with your End User Media Kit that lists the most relevant ones.
  592.  
  593.     Prentice-Hall has reprints of much of the AT&T documentation.
  594.     I'm not sure how much of this you need - a lot of the same
  595.     material is in the Answerbook (see above).
  596.  
  597. 3. SYSTEM ADMINISTRATION
  598.  
  599. 3.1) How much disk space do I need to install Solaris 2?
  600.  
  601.     A full install of 2.2 is supposed to be 164 MB, but that doesn't
  602.     include swap. Here is a net exchange between Casper Dik and Gil Tene:
  603.  
  604.     In article <1993Apr2.083549.19177@fwi.uva.nl>, Casper writes:
  605.     |> >How much disc space does SOLARIS take up ? That is should we buy a
  606.     |> >424Mb disc or get a 1Gb disc to put it on :-)
  607.     |> 
  608.     |> Solaris 2.x takes about as much diskspace as SunOS 4.x:
  609.     |> 
  610.     |> Partition/Slice Solaris SunOS
  611.     |> /        10MB     8MB
  612.     |> /usr        78MB    90MB
  613.     |> /var        10MB    10MB
  614.     |> /usr/openwin    83MB    83MB
  615.     |> 
  616.  
  617.     Gil replies:
  618.     On my system, with a full Solaris installation (EVERYTHING selected)
  619.     + gnu's binary stuff for solaris (off of the Catalyst CD) installed 
  620.     in /opt I see a similar situation to the above plus :
  621.  
  622.     16852   /opt/SUNWabe
  623.     19      /opt/SUNWcg12
  624.     7968    /opt/SUNWdiag
  625.     721     /opt/SUNWgt
  626.     7740    /opt/SUNWits
  627.     14609   /opt/cygnus-sol2-1.0
  628.  
  629.     (output from "du -k -s /du/*")
  630.  
  631.     - SUNWabe is the end user answerbook stuff.  (vi, mail, Deskset tools
  632.       etc, etc)
  633.  
  634.     - SUNWcg12 is (obviously) cg12 support.
  635.  
  636.     - SUNWdiag is obvious too.
  637.  
  638.     - SUNWgt is support for gt boards.
  639.  
  640.     - SUNWits is the xgl3.0 library (it has libPEX5.so.1 in there too).
  641.  
  642.     - cygnus-sol2-1.0 is the gcc2.0+tools stuff. I have gcc2.3.3 on 
  643.       another partition and that takes about the same space as 2.0 does.
  644.  
  645.     Another important note : The full Solaris 2.1 answerbook takes up 164MB
  646.     on disk. I highly recommend installing it and not using it off the
  647.     CDROM drive. It's much more usable (faster) this way. And it always
  648.     stays around -- even when you have something else in the CDROm drive.
  649.  
  650. 3.2) How can I convert all my local changes that I've made over the years
  651. into their corresponding forms on Solaris 2?
  652.  
  653.     1) Do it by hand. You did document every single change and
  654.     check it into RCS, didn't you?
  655.  
  656.     2) Automate it, using the AMToolkit (Administration Migration 
  657.     Toolkit) from the OpCom FTP server (q.v.)!
  658.  
  659. 3.3) What are "packages"?
  660.  
  661.     A SVR4 mechanism for "standardizing" the installation of
  662.     optional software. Most vendors are expected to use this
  663.     format for distributing add-on software for Solaris 2.x.
  664.  
  665.     Packages can be installed/deinstalled with pkgadd/pkgrm which
  666.     are standard SVR4 items, or with swm (CRT) or swmtool (GUI-based)
  667.     which are provided only in Solaris 2.
  668.  
  669.     Note that the "pkg" system keeps lots of files in /var/sadm/install,
  670.     and in particular the file "contents", which is hundreds of KB,
  671.     and that there are two copies of it while pkgadd is running, so you
  672.     needs lots of free space where /var is, typically the root.
  673.     This file must be kept around if you want, for example, to use
  674.     pkgrm to remove a package, or pkgchk to verify months later that
  675.     all of a a package's files are still intact.
  676.  
  677.     Summary of pkg* commands:
  678.  
  679.         pkginfo <pkg>    - test for presents of package.
  680.         pkgadd -d /<cdrom>/Solaris_2.3 <pkg ...>
  681.                 - add missing packages
  682.         pkgrm <pkg ...>    - remove packages.
  683.  
  684. 3.4) Why can't I write in /home?
  685.  
  686.     This is a common one! SunOS is delivered with the "automounter"
  687.     enabled. The automounter is designed for NFS sites, to
  688.     simplify maintenance of the list of filesystems that need
  689.     mounting. However it is a burden for standalone sites.
  690.  
  691.     The automounter takes over /home and in effect becomes the NFS
  692.     server for it, so it no longer behaves like a normal directory.
  693.     This is normally a Good Thing as it simplifies administration if
  694.     everybody's home directory is /home/<username>.
  695.  
  696.     To kill it off for standalone or small networks, you can comment out
  697.     the three lines in /etc/init.d/nfs.client that start "if" (from the if
  698.     to the fi!!), and reboot (Solaris 2.2) or remove the file
  699.     /etc/rc2.d/S73autofs (Solaris 2.3).  You can allways relink
  700.     that file with /etc/init.d/autofs if you change your mind.
  701.  
  702.     To learn about it, read the O'Reilly book "Managing NFS and
  703.     NIS", or ftp the white paper 'The Art of Automounting".  from
  704.     sunsite.unc.edu in the directory /pub/sun-info/white-papers.
  705.  
  706. 3.5) Why can't I access CDs or floppies?
  707.  
  708.     Solaris 2.2 introduces a new scheme for automatically mounting
  709.     removable media. It consists of a program "vold" (volume daemon) which
  710.     sits around watching for insertions of floppies and CD's,
  711.     handles ejects, talks to the file manager, and invokes a second
  712.     program called "rmmount" (removable media mounter) to mount the disk. 
  713.  
  714.     Note that on most SPARCstations, you must run "volcheck"
  715.     whenever you insert a floppy, as the floppy hardware
  716.     doesn't tell SunOS that a floppy was inserted.
  717.  
  718.     Advantages of this scheme:
  719.     - no longer need root; users can mount and unmount at will.
  720.     - can do neat tricks like automagically start "workman" or
  721.       other Audio CD player when audio CD inserted.
  722.     - extensible - developers can write their own actions
  723.  
  724.     Drawbacks:
  725.     - can no longer access /dev/rfd0 to get at floppy; must use
  726.       longer name like /vol/dev/rdsk/floppy0 
  727.     - similarly, CD's get mounted on /cdrom/VOLNAME/SLICE, e.g.,
  728.       /cdrom/solaris_2_2/s0 is slice 0 of the Solaris 2 CD
  729.       (nice that it does mount all the partitions, though!).
  730.  
  731.     To read or write a non-filesystem floppy (tar, cpio, etc),
  732.     put in the diskette and run "volcheck" to get it noticed; then access
  733.     /vol/dev/rfd0/unlabeled  (e.g. "tar tvf /vol/dev/rfd0/unlabeled").
  734.  
  735.     [Solaris 2.3: /vol/dev/rdiskette0/unlabeled, or
  736.               /vol/dev/aliases/floppy0.]
  737.  
  738.     If you want the old behaviour, it's been suggested that you
  739.     can comment out the vold startup in /etc/init.d/volmgt and
  740.     then reboot; an easier way is # /etc/init.d/volmgt stop.
  741.  
  742. 3.6) What is this junk mail about an error in the crontab entry?
  743.  
  744.     Solaris 2.1 (FCS on SPARC and OEM on Intel) shipped with a
  745.     blank line at the end of root's crontab file. The result is
  746.     that root gets mail at boot time and nightly thereafter,
  747.     complaining about an error in the crontab file and that it has
  748.     "ignored the entry".  Pretty hard work ignoring that blank
  749.     line, eh?  If the messages bug you (they should), su to root
  750.     and use "crontab -e" to edit root's crontab and delete the
  751.     blank line at the end of the file. Fixed in FCS on Intel
  752.     and 2.2 on SPARC.
  753.  
  754. 3.7) Why are there no passwords in /etc/passwd?
  755.  
  756.     System V Release 4 includes a feature called "shadow passwords".
  757.     The encrypted passwords are moved out into a shadow password file
  758.     (called /etc/shadow in this release) that is NOT publicly readable.
  759.     The passwd file has always been readable so that, for example, ls -l
  760.     could figure out who owns what. But having the passwd encryptions
  761.     readable is a security risk (they can't be decrypted but the bad guy
  762.     can encrypt common words and names &c and compare them with the
  763.     encryptions).
  764.  
  765.     The Shadow Password feature is mostly transparent, but if you
  766.     do any passwd hacking you have to know about it!  And DO make
  767.     sure that /etc/shadow is not publicly readable!
  768.  
  769. 3.8) Why can't I rlogin/telnet in as root?
  770.  
  771.     >... when I try to rlogin as root ...
  772.      message "Not on system console
  773.     >Connection closed.".  What have I left out?
  774.  
  775.     Solaris 2 comes out of the box a heck of a lot more secure than
  776.     Solaris 1.  There is no '+' in the hosts.equiv.  root logins are not
  777.     allowed anywhere except the console.  All accounts require passwords.
  778.     In order to allow root logins over the net, you need to edit the 
  779.     /etc/default/login file and comment out or otherwise change the 
  780.     CONSOLE= line.
  781.  
  782.     This file's CONSOLE entry can actually be used in a variety of ways:
  783.  
  784.         1) CONSOLE=/dev/console (default) - direct root logins only on console
  785.         2) CONSOLE= - direct root logins disallowed everywhere
  786.         3) #CONSOLE (or delete the line) - root logins allowed everywhere
  787.  
  788. 3.9) How can I set up anonymous FTP?
  789.  
  790.     If you need help, ftp the file "solaris2-ftp" from
  791.     ftp.cs.toronto.edu:/pub/darwin/solaris2.
  792.  
  793.     ftpd(1M) is nearly complete when it comes to setting
  794.     up anonymous ftp.  It only leaves out /etc/nsswitch.conf. [S2.3]
  795.  
  796. 3.10) How can I print from a Solaris 2 (or any System V Release 4) system to
  797. a SunOS4.x (or any other BSD) system?
  798.  
  799.     Hmmm, the lp system is totally different than what you're used to.
  800.     The System V Line Printer System is a lot more, well, flexible.
  801.     A cynic might say "complicated".  Here's a very quick guide --
  802.     see the man pages for each of these commands for the details.
  803.  
  804.     Let's say your Solaris2 workstation is called "sol" and the
  805.     4.1.x server is called "bertha" and you want the printer name
  806.     to be "printer" (imaginative, eh?).
  807.  
  808.     sol# lpsystem -t bsd bertha        # says bertha is a bsd system
  809.     sol# lpadmin -p printer -s bertha    # creates "printer" on "sol"
  810.                         # to be printed on "bertha"
  811.     sol# accept printer            # allow queueing
  812.     sol# enable printer            # allow printing
  813.     sol# lpstat -t                # check the status
  814.  
  815.     Finally, if that's your only printer, make it the default:
  816.  
  817.     sol# lpadmin -d printer
  818.  
  819.     On some systems you may have to turn on the port monitor.
  820.  
  821. I did that. Why does it now complain about invalid content types?
  822.  
  823.     I said it was complicated!
  824.  
  825.     For better or for worse, you need to know about printer content types.
  826.     See the man page for "lpadmin".
  827.  
  828.     To get transparent mode, try this:
  829.  
  830.     lpadmin -I any -p printer
  831.  
  832. Isn't there any easier way?
  833.  
  834.     The GUI-based Admintool has a Printer Manager that is supposed to
  835.     be able to do all this and more. Try it; Sun hopes you'll like it.
  836.  
  837. Now my jobs print but they stay in the queue after!?
  838.  
  839.     It's a known bug, and probably get fixed in 2.3.
  840.     There's also a number of lpsched patches out for
  841.     Solaris: 101025-xx (2.2) and 101317-xx (2.3).
  842.     Make sure you install those.
  843.  
  844.     [Now you want to set up Solaris 2 as a print server?
  845.     You're on your own.]
  846.  
  847. 3.11) What if I'd rather use the old familiar BSD-style line printer system?
  848.  
  849.     The 4.3BSD-reno lpr system for Solaris 2, file
  850.         lpr-sol2.tar.gz or lpr-sol2.tar.Z 
  851.     is available from the following FTP sites:
  852.  
  853.     sunok-wks.acs.ohio-state.edu:/pub/solaris2/src/lpr-sol2.tar.gz
  854.     atlas.ce.washington.edu:/pub/lpr-sol2.tar.Z
  855.     solomon.technet.sg:/pub/uploads/unix/lpr-sol2.tar.gz
  856.  
  857. And don't despair.  Someday the System V print spooler will be replaced
  858. by something new.  (See the Solaris 2.3 Open Issues & Late Breaking News
  859. For System dministrators)
  860.  
  861.  
  862. 3.12) What happened to /dev/MAKEDEV? How do I add devices?
  863.  
  864.     Device drivers are linked in dynamically. When you add new
  865.     devices, just shutdown the system and do
  866.         boot -r    # use drive spec if not default disk
  867.     to *r*ebuild the /devices and /dev directories.
  868.  
  869.     If you're just adding a SCSI disk, you don't need to reboot.  Run the
  870.     following script (as root):
  871.  
  872.         #!/bin/sh
  873.         #
  874.         # add-disk
  875.         #
  876.         #       Runs the commands to make Solaris locate a new disk that
  877.         #       has been plugged in after the system was booted.
  878.         #
  879.  
  880.         _DVFS_RECONFIG=YES; export _DVFS_RECONFIG  # Solaris 2.1
  881.         _INIT_RECONFIG=YES; export _INIT_RECONFIG  # Solaris 2.[23]
  882.  
  883.         /etc/init.d/drvconfig
  884.         /etc/init.d/devlinks
  885.  
  886.         exit 0
  887.  
  888.     Note that this only works if you already have at least one SCSI disk on
  889.     the system.  (This is because the above just makes symbolic links and
  890.     things, it does not load up the SCSI driver kernel modules, etc.)
  891.  
  892. 3.13) What happened to /etc/rc and /etc/rc.local?
  893.  
  894.     They're now fragmented into 12 million tiny little pieces. Look in 
  895.     the following files to get oriented:
  896.         /etc/inittab - starting point for init
  897.         /sbin/rcS, /etc/rcS.d/* - booting stuff
  898.         /sbin/rc2, /etc/rc2.d/*,
  899.             /sbin/rc3, /etc/rc3.d/* - stuff for multi-user startup.
  900.     Note that all files in /etc/rc*.d/* are hardlinked from
  901.     /etc/init.d (with better names), so you should grep in there.
  902.  
  903.     There are many "run levels" to the System V init; the run
  904.     level 3 is normally used for "multi user with networking."
  905.  
  906. I can't understand that stuff; can't I have /etc/rc.local back?
  907. I just want to keep all my local changes in one place.
  908.  
  909.     No. You can never have rc.local back the way it was. But then, it
  910.     never really *was* purely a "local" rc file. To have a real
  911.     "local" rc file with just your changes in it, copy this file
  912.     into /etc/init.d/rc.local, and ln it to /etc/rc3.d/S99rc.local.
  913.     Put your startup stuff in the "start" section.
  914.  
  915.     ----- Cut here -----
  916.     # /etc/init.d/rc.local - to be linked into /etc/rc3.d as 
  917.     # S99rc.local -- a place to hang local startup stuff.
  918.     # started after everything else when going multi-user.
  919.  
  920.     # Ian Darwin, Toronto, November, 1992
  921.     # As with all system changes, use at own risk!
  922.  
  923.     case "$1" in
  924.     'start')
  925.         echo "Starting local services...\c"
  926.  
  927.         if [ -f /usr/sbin/mydaemon ]; then
  928.             /usr/sbin/mydaemon 1>/dev/console 2>&1
  929.         fi
  930.         echo ""
  931.         ;;
  932.     'stop')
  933.         echo "$0: Not stopping any service - use ucb shutdown for that."
  934.         ;;
  935.     *)
  936.         echo "Usage: $0 { start | stop }"
  937.         ;;
  938.     esac
  939.     ------ End of Cut Here -----
  940.  
  941. 3.14) Speaking of that, why are there two versions of shutdown?
  942.     SVR4 (hence SunOS 5.x) tries to make everybody happy. The
  943.     traditional (slow) System V "shutdown" runs all the rc?.d/*
  944.     shell scripts with "stop" as the argument; many of them run
  945.     ps(!) to look for processes to kill. The UCB "shutdown" tells
  946.     init to kill all non-single-user processes, which is about two
  947.     orders of magnitude faster. Unfortunately, the UCB version does
  948.     everything it should *except* actually halt or reboot in
  949.     SunOS5.1 (and some other SVR4 implementations).
  950.     This is fixed in Solaris 2.3.
  951.  
  952.     If you run a database (like oracle) or INN, you should
  953.     install a special /etc/rc?.d/K* script and make sure you
  954.     always shutdown the long way.
  955.  
  956. 3.15) When will somebody publish a package of the BSD (4.3BSD Net2) "init",
  957.     "getty", and "rc/rc.local", so we can go back to life in the
  958.     good old days?
  959.  
  960.     Getty should be easy and was reportedly done at a number of
  961.     sites.  The portmonitor isn't everyones favourite.  But given
  962.     that you can do much more with the SVR4 init, why would
  963.     you want to change back?  It would be much more trouble than
  964.     it's worth.
  965.  
  966. 3.16) What has happened to getty? What is pmadm and how do you use it?
  967.  
  968.     I was hoping you wouldn't ask. PMadm stands for Port Monitor Admin,
  969.     and it's part of a ridiculously complicated bit of software
  970.     over-engineering that is destined to make everybody an expert.
  971.  
  972.     Best advice for workstations: don't touch it! It works out of the box.
  973.     For servers, you'll have to read the manual.
  974.     This should be in admintool in Solaris2.3.
  975.     For now, here are some basic instructions from Davy Curry.
  976.  
  977.     "Not guaranteed, but they worked for me."
  978.  
  979.     To add a terminal to a Solaris system:
  980.  
  981.     1. Do a "pmadm -l" to see what's running.  The serial ports on the 
  982.     CPU board are probably already being monitored by "zsmon".
  983.  
  984.     PMTAG          PMTYPE         SVCTAG         FLGS ID       <PMSPECIFIC>
  985.     zsmon          ttymon         ttya           u    root     \
  986.         /dev/term/a I - /usr/bin/login - 9600 ldterm,ttcompat ttya \
  987.         login:  - tvi925 y  #
  988.  
  989.     2. If the port you want is not being monitored, you need to create a
  990.     new port monitor with the command
  991.  
  992.         sacadm -a -p PMTAG -t ttymon -c /usr/lib/saf/ttymon -v VERSION
  993.  
  994.     where PMTAG is the name of the port monitor, e.g. "zsmon" or "alm1mon",
  995.     and VERSION is the output of "ttyadm -V".
  996.  
  997. ady being monitored, and you want to 
  998.     change something, you need to delete the current instance of the port
  999.     monitor.  To do this, use the command
  1000.  
  1001.         pmadm -r -p PMTAG -s SVCTAG
  1002.  
  1003.     where PMTAG and SVCTAG are as given in the output from "pmadm -l".  Note
  1004.     that if the "I" is present in the <PMSPECIFIC> field (as it is above),
  1005.     you need to get rid of it.
  1006.  
  1007.     4. Now, to create a specific instance of ttymon for a port, issue the
  1008.     command:
  1009.  
  1010.     pmadm -a -p PMTAG -s SVCTAG -i root -fu -v 1 -m \
  1011.         "`ttyadm -m ldterm,ttcompat -p 'PROMPT' -S YORN -T TERMTYPE \
  1012.         -d DEVICE -l TTYID -s /usr/bin/login`"
  1013.  
  1014.     Note the assorted quotes; Bourne shell (sh) and Korn (ksh) users
  1015.     leave off the second backslash!
  1016.  
  1017.     In the above:
  1018.  
  1019.     PMTAG is the port monitor name you made with "sacadm", e.g. "zsmon".
  1020.  
  1021.     SVCTAG is the service tag, which can be the name of the port, e.g.,
  1022.             "ttya" or "tty21".
  1023.  
  1024.     PROMPT is the prompt you want to print, e.g. "login: ".
  1025.  
  1026.     YORN is "y" to turn software carrier on (you want this for directly
  1027.     connected terminals" and "n" to leave it off (you want this
  1028.     for modems).
  1029.  
  1030.     TERMTYPE is the value you want in $TERM.
  1031.  
  1032.     DEVICE is the name of the device, e.g. "/dev/term/a" or "/dev/term/21".
  1033.  
  1034.     TTYID is the line you want from /etc/ttydefs that sets the baud rate
  1035.         and stuff.  I suggest you use one of the "contty" ones for
  1036.         directly connected terminals.
  1037.  
  1038.     5. To disable ("turn off") a terminal, run
  1039.  
  1040.         pmadm -d -p PMTAG -s SVCTAG
  1041.  
  1042.     To enable ("turn on") a terminal, run
  1043.  
  1044.     pmadm -e -p PMTAG -s SVCTAG
  1045.  
  1046.     Ports are enabled by default when you "create" them as above.
  1047.  
  1048.     For more details, see the article:
  1049.         SUMMARY: Solaris modem/terminal how-to: Rev xx.xx.xx
  1050.     posted periodically to comp.unix.solaris by
  1051.     celeste@xs.com (Celeste Stokely).
  1052.  
  1053. 3.17) How do I get the screen to blank when nobody's using it?
  1054.  
  1055.     Under 4.1.x you invoke screenblank in /etc/rc.local, but there's no
  1056.     screenblank in Solaris 2.1.  Sun recommends that you
  1057.     have everybody put `xset s on' in their .xinitrc, but this
  1058.     may be hard to police, and in any event it won't work when nobody is
  1059.     logged in.  The simplest workaround is to copy /usr/bin/screenblank
  1060.     from 4.1.x and run it in binary compatibility mode.  See ``What
  1061.     happened to /etc/rc and /etc/rc.local?'' for how to invoke it.
  1062.  
  1063.     Another possibility is to use xdm, but you'll have to use your own,
  1064.     since the xdm shipped with Solaris 2.1 doesn't work.
  1065.  
  1066.     The 4.1.x screenblank didn't work for me; I use Jef Poskanzer's
  1067.     freeware screenblank (FTP it from various archive sites,
  1068.     two of them listed in the next item).
  1069.  
  1070.     Because of a bug in Solaris 2.3, you'll need to change to
  1071.     use latest version of screenblank.
  1072.  
  1073. 3.18) And what about screendump, screenload and clear_colormap?
  1074.  
  1075.     You can FTP Jef's screenload, screendump, etc., if you need that
  1076.     functionality, and for free you get a pixrect (clone) library.
  1077.     Get one of these:
  1078.         netcom.com:pub/jef/raster-pixrect_30dec93.tar.Z
  1079.         ee.lbl.gov:raster-pixrect_30dec93.tar.Z
  1080.  
  1081.     The 4.1.x versions of these programs will not run under
  1082.     Solaris 2.2 or later.  The pixrect BCP library is no
  1083.     longer supported.
  1084.  
  1085. 3.19) Where did etherfind go?
  1086.  
  1087.     There is a replacement for etherfind, but it has changed name;
  1088.     in fact it's a whole new program. It IS better. To find it,
  1089.     though, you would have to realize that network snooping is not
  1090.     really ethernet-specific.  To end the suspense :-), here it is:
  1091.  
  1092.     % man -k snoop
  1093.     snoop    snoop (1m)    - capture network packets and inspect them
  1094.     %
  1095.  
  1096.     It works differently - it has an immediate mode, a capture-to-disk mode,
  1097.     and a playback-from-disk mode.  Read the man page for details.
  1098.  
  1099. 3.20) Can I run SunOS4.1.x on my SPARC Classic or LX?
  1100.  
  1101.     Yes, because users wanted it (and because Clone makers were providing
  1102.     it), Sun has now released a version of Solaris 1 (SunOS 4.1.3)
  1103.     specifically for these machines.  That version is called 4.1.3C
  1104.     or Solaris 1.1C.  Recently, Sun released a new end-of-life
  1105.     release of SunOS 4.1.x, 4.1.3_U1 (Solaris 1.1.1).  This
  1106.     release supports the LX and Classic as well.  Suns newest
  1107.     models based on the MicroSPARC II will be supported in a
  1108.     SunOS 4.1.x release as well.
  1109.  
  1110. 3.21) The "find" program complains that my root directory doesn't exist?
  1111.  
  1112.     Yes! Actually, messages like
  1113.  
  1114.     find : cannot open /: No such file or directory.
  1115.  
  1116.     are due to a bug in the tree walking function (nftw(3)).  If it
  1117.     runs into problems traversing the tree, it gives up and
  1118.     incorrectly complains about the top level directory of the
  1119.     tree.  [The submitter seems] to recall that the most common
  1120.     case which caused trouble was a directory somewhere in the
  1121.     directory hierarchy which was readable but not executable.
  1122.     With the fix it will just complain about the directory to which
  1123.     it couldn't chdir and skip descending that subtree.
  1124.  
  1125.  
  1126. 3.22) I'm having troubles with high-speed input on the Sparc serial ports.
  1127. What should I do?
  1128.  
  1129.     Try using UUCP.  The Solaris 2.x sparc serial driver has trouble
  1130.     receiving data at or above 9600 bps.  Symptoms include sluggish
  1131.     response, `NOTICE: zs0: silo overflow' console messages, sending
  1132.     spurious control-Gs to the serial port, and applications that cannot be
  1133.     killed even with `kill -9'.  This problem surfaces in many
  1134.     applications, including Kermit and tip.  UUCP seems immune, though,
  1135.     because its protocol throttles input sufficiently.
  1136.  
  1137. 3.23) How do I make ksh or csh be the login shell for root?
  1138.  
  1139.     Root's shell is /sbin/sh, which is statically linked.
  1140.     Don't just insert a 'c' before "sh" as previously, as that would
  1141.     look for /sbin/csh, which doesn't exist.  Don't just change it to 
  1142.     /bin/csh, since that's really /usr/bin/csh, which is dynamically
  1143.     linked, because:
  1144.         a) /usr may not be mounted initially, and then
  1145.            you're in deep (the shared libraries are in /usr!), and
  1146.         b) There is code in the startup scripts that assumes that
  1147.            everything critical is in /etc/lib, not /usr/lib.
  1148.     Approach with caution!
  1149.  
  1150.     Safer bet - have an alternate root account, like "rootcsh",
  1151.     with uid 0, and /bin/csh as its shell. Put it after root's entry in
  1152.     the passwd file.  Only drawback: you now have to remember to
  1153.     change all of root's passwds at the same time.
  1154.  
  1155.     Third bet - in root's .profile, check if /usr is mounted and, if so,
  1156.     exec /bin/ksh or whatever.
  1157.  
  1158. 3.24) What is this message: "automount: No network locking on thathost,
  1159.     contact administrator to install server change."?
  1160.  
  1161.     The other machine (an NFS server) is running 4.1.x and needs a
  1162.     patch from Sun to update its network lock daemon (lockd). If
  1163.     you don't install the patch on the server, file locking will
  1164.     not work on files mounted from "thathost". The 100075-xx patch
  1165.     fixes a bunch of other lock manager problems, so it may be a
  1166.     Good Thing To Get; however, it may also cause the machine on
  1167.     which the patch is installed to have trouble talking to servers
  1168.     with no patch or older patches, so Be Warned.
  1169.  
  1170. 3.25) How do I make Solaris2 use my Toshiba MK538FB drives?
  1171.  
  1172.     Append this line to /etc/system and reboot:
  1173.  
  1174.     set scsi_options=0x78
  1175.  
  1176.     This turns off Command Queueing, which upsets the Toshiba
  1177.     and some other drives.  If you have fast SCSI, you must use:
  1178.  
  1179.     set scsi_options=0x178
  1180.  
  1181.     or you end up disabling fast SCSI as well.
  1182.  
  1183. 3.26) How do I make Solaris2 use my old ADAPTEC ACB-4000 and Emulex MD-21 disks?
  1184.  
  1185.     As with any hardware addition, first try the obvious (boot -r
  1186.     after installing and power-cycling everything).
  1187.  
  1188.     The adaptec is no longer supported; man -s7 sd no longer even
  1189.     lists it!  So I guess they go over the cliff. Either that, or
  1190.     take the drives out and put them on a PC, where ST506 MFM
  1191.     drives are still supported.
  1192.  
  1193.     The MD21 should work, though some people report that SCSI
  1194.     doesn't work in 4/260 boxes (bug-id #11187521).
  1195.  
  1196. 3.27) Why are there so many patches for Solaris 2.3? It's only been out a month!
  1197.  
  1198.     Solaris 2.x releases are essentially frozen TWO months before
  1199.     their general release date.  During the early access/beta test
  1200.     period bugs are found both in the beta and in the previous
  1201.     release.  That's why at the moment a new release comes out a
  1202.     number of patches is ready. Some of those are on the Solaris
  1203.     2.3 CD.  Others were released almost at the same time as 2.3.
  1204.  
  1205.     Solaris 2.3 is not a bug fix release.  Although tons of bugs
  1206.     were fixed, a number of changes have been made and a number of
  1207.     new features were introduced:
  1208.  
  1209.     * OpenWin moved from NeWS based to X11R5+DPS based. (needs 101362-11)
  1210.     + PPP (needs 101425)
  1211.     + AutoFS (needs 101329-10 & 101500-02)
  1212.     + CacheFS
  1213.     + Easier NIS+ conversion
  1214.     + BCP for statically linked executables.
  1215.  
  1216.     And another user writes:
  1217.  
  1218.     Be thankful you don't have to use IBM's AIX.  For that you get
  1219.     a new release and then about 100 patches per WEEK!
  1220.  
  1221. 3.28) What are the ``mandatory'' patches I keep hearing about?
  1222.  
  1223.     The mandatory patches weren't mandatory, so they've been relabeled.
  1224.     They're now called ``recommended'' patches.
  1225.  
  1226.     The recommended patches are those patches Sun recommends for
  1227.     trouble free system operation.  With those patches installed,
  1228.     your chances on trouble free operation are higher.  That doesn't
  1229.     mean you will run into trouble without them.
  1230.  
  1231. 3.29) Where do I get patches from?
  1232.  
  1233.     thor.ece.uc.edu:/pub/sun-faq/Solaris2.[123]-patches.
  1234.  
  1235.     (SunOS 4.1.x patches in: /pub/sun-faq/SunOS4.1.x.Patches)
  1236.  
  1237.     ugle.unit.no:/pub/unix/sun-fixes
  1238.  
  1239.     Starting with SunSolve CD 2.1.2 ALL Sun patches are shipped
  1240.     on the SunSolve CD.
  1241.  
  1242.     Contract customers can get patches by ftp from Sun sites
  1243.     or via e-mail and query one of the online sunsolve-databases
  1244.     on the internet.
  1245.  
  1246. 3.30) Why does installing patches take so much space in /var/sadm?
  1247.  
  1248.     All the files that are replaced by a patch are stored under
  1249.     /var/sadm/patch/<patch-id>/save so the patch can be backed
  1250.     out safely.
  1251.  
  1252.     You can remove the <patchdir>/save directory provided you also
  1253.     remove the <patchdir>/.oldfilessaved file.
  1254.  
  1255.     Alternatively, you can install a patch w/o saving the old
  1256.     files.
  1257.  
  1258. 3.31) Do I need to back out previous versions of a patch?
  1259.  
  1260.     No, unless otherwise stated in the patch README.
  1261.     If the previous patch installation saved the old
  1262.     files, you may want to reclaim that space.
  1263.  
  1264.     Patches can be backed out with:
  1265.     
  1266.         /var/sadm/patch/<patch-id>/backoutpatch <patch-id>
  1267.  
  1268.     Backoutpatch can take an awful long time, especially when the
  1269.     patch contained a lot of files.
  1270.  
  1271. 3.32) How can I have more than 48 pseudo-ttys?
  1272.  
  1273.     Edit /etc/system and add the following line:
  1274.  
  1275.     * System V pseudo terminals
  1276.  
  1277.     set pt_cnt = <num>
  1278.  
  1279.     * BSD pseudo ttys
  1280.  
  1281.     set npty = <num>
  1282.  
  1283.     Halt the system and boot -r.
  1284.  
  1285. 3.33) I messed up /etc/system, now I can't boot.
  1286.  
  1287.     Boot with -as.  The kernel will ask you all sorts of questions,
  1288.     including the name of the system file.  Use the previous
  1289.     /etc/system file or specify /dev/null.
  1290.  
  1291.  
  1292. 4. NETWORKING
  1293.  
  1294. 4.1) Can I use DNS with Solaris 2.x?
  1295.  
  1296.     It seems that the in.named included in the Solaris 2.1 distribution
  1297.     is terribly unstable. The easiest solution for now I have discovered
  1298.     is to use the OLD (SunOS 4.1.2 in my case) in binary compatibility
  1299.     mode. This works just fine. If it's slower I can't tell.
  1300.     There's also a patch (100902-01) available now for 2.1.
  1301.     It works in Solaris 2.2 and later.
  1302.  
  1303.  
  1304. 4.2) How do I use DNS w/o using NIS or NIS+?
  1305.  
  1306.     Under SunOS 4.1 it was next to impossible to run DNS name resolution
  1307.     without either a kludge fix or the NIS (V2 I guess). Under Solaris
  1308.     2.1 it is incredibly simple, but you must ignore what the manual
  1309.     (SunOS 5.1 Administering NIS+ and DNS) says (the manual is fixed
  1310.     in Solaris 2.2). All that is required to make a non-NIS host
  1311.     use the DNS for name resolution is to change the host: line in
  1312.     the /etc/nsswitch.conf file to the following:
  1313.  
  1314.     hosts:    files dns
  1315.  
  1316.     (i.e., when looking for hosts, look in /etc/hosts first, if not
  1317.     found there, try DNS, if still not found then give up) and set
  1318.     up a correct version of /etc/resolv.conf to tell the resolver
  1319.     routines (like gethostbyname) how to contact the DNS
  1320.     nameserver. You must have the names of machines which are
  1321.     somehow contacted during boot in the files in /etc and files
  1322.     must appear first in the hosts: line, otherwise the machine
  1323.     will hang during boot (at least ours did). Make sure that
  1324.     /etc/netconfig is using switch.so. (It does from the factory.)
  1325.  
  1326.  
  1327. 4.3) Speaking of nsswitch.conf, what is it?
  1328.  
  1329.     An idea whose time has come (it came to Ultrix a few years
  1330.     ago).  You can control which of the "resolver" services are
  1331.     read from NIS (formerly YP), which from NIS+, which from the
  1332.     files in /etc, and which are from DNS (but only "hosts" can
  1333.     come from DNS).
  1334.  
  1335.     A common example would be:
  1336.  
  1337.     hosts: nis files
  1338.  
  1339.     which means ask NIS for host info and, if it's not found, try
  1340.     the local machine's host table as a fallback.
  1341.  
  1342.     Advice: if you're not using NIS or DNS, suninstall probably put the
  1343.     right version in. If you are, ensure that hosts and passwd come from
  1344.     the network. However, many of the other services seldom if ever change.
  1345.     When was that last time *you* added a line in /etc/protocols? If your
  1346.     workstation has a local disk, it may be better to have programs
  1347.     on your machine look up these services locally, so use "files".
  1348.  
  1349.     Terminology: Sun worried over the term "resolver", which
  1350.     technically means any "get info" routine (getpwent(3),
  1351.     gethostbyname(3), etc), but is also specifically attached to
  1352.     the DNS resolver.  Therefore they used the term "source" to
  1353.     mean the things after the colon (files/DNS/NIS/NIS+) and
  1354.     "database" to mean the thing before the colon
  1355.     (passwd/group/hosts/services/netgroup etc).
  1356.  
  1357.     A complete discussion can be found in nsswitch.conf(4).
  1358.  
  1359.  
  1360. 4.4) So what does [NOTFOUND=return] in nsswitch.conf mean, and where does it go?
  1361.  
  1362.     Type "man nsswitch.conf" for more info.  There is too much
  1363.     detail to summarize here.  Briefly, [NOTFOUND=return] means
  1364.     that the name service whose entry it *follows* should be
  1365.     considered authoritative (so that if it's up and it says such a
  1366.     name doesn't exist, believe it and return instead of continuing
  1367.     to hunt for an answer).
  1368.  
  1369. 4.5) Can I run a nis/yp server under Solaris 2.x?
  1370.  
  1371.     Yes, you need the Solaris network transition kit available from
  1372.     Sun.  However, his kit does not include the securenets patch.
  1373.  
  1374. 4.6) Can I run NIS+ under Solaris 1 (SunOS 4.1.x)
  1375.  
  1376.     Sort of, with the NIS+ server implementation for Solaris 1.x
  1377.     that comes on the Solaris 2.x CD.  This is a server side only
  1378.     implementation and requires NIS+ to run in YP compatibility
  1379.     mode.
  1380.  
  1381. 4.7) With NIS+ how do I find out which machine a client is bound to?
  1382.  
  1383.     Nis+ clients do not hard bind to nis+ servers in the same
  1384.     way that nis clients bind to nis servers. The clients have a
  1385.     list of nis+ servers within the cold-start file. When they need
  1386.     to do a lookup they do a type of broadcast called a "manycast"
  1387.     and talk to the first server that responds. This way they can
  1388.     be sure to use the lightest loaded server for the request.
  1389.  
  1390. 4.8) Ypcat doesn't work on the netgroup table on a NIS+ server, why?
  1391.  
  1392.     Yes, that is a known problem.  The only operations allowed from
  1393.     a NIS client side on the netgroup table are the ypmatches, but
  1394.     not ypcat (i.e. no support for yp_first(), yp_next() or
  1395.     yp_all() calls).  The netgroup table is kind of unique in
  1396.     this.  The reason for this is that the netgroup table format
  1397.     changed quite significantly in NIS+ and the NIS+ server would
  1398.     take a big performance hit in converting the netgroups table to
  1399.     YP (key-value) format.
  1400.  
  1401. 4.9) Why is rpc.nisd such a memory pig according to ps?
  1402.  
  1403.     The good news is that it's not memory OR swap space you're
  1404.     being shown by 'ps'.  Instead it's showing you the process
  1405.     ADDRESS space which includes 256 MB of address space reserved
  1406.     for the NIS+ transaction log.  Given the cost of moving things
  1407.     around in memory and the fact that we have 4 GB of address
  1408.     space to play with it, this is a good idea.  You've just got to
  1409.     stop thinking small.  THINK BIG.  It's only 1/16th of the total
  1410.     process address space being used.  And if you ever exceed the
  1411.     256 MB size of the transaction log you're doing something VERY
  1412.     wrong.
  1413.  
  1414. 5. TROUBLE SHOOTING
  1415.  
  1416. 5.1) Why can't I run Answerbook on a standalone machine?
  1417.  
  1418.     This is a bug in openwindows.  Using xhost + or starting
  1419.     openwin -noauth works around this problem.  This is
  1420.     only recommended for stand-alone machines with no dial-in
  1421.     users.
  1422.  
  1423. 5.2) Why can't I run filemgr, I get ``mknod: permission denied''?
  1424.  
  1425.     This is a symptom of a bug in filemgr.
  1426.     Either apply patch #101514 or run the following commands
  1427.     at system start-up:
  1428. d a+rwxt /tmp/.removable
  1429.  
  1430. 5.3) Why do I get isinf undefined when linking with libdps?
  1431.  
  1432.     That's a bug in libdps.  Sun compiles and links its software
  1433.     with its own compilers.  The isinf() function is shipped with
  1434.     the SunPRO compilers, but not defined in any Solaris 2.x library.
  1435.  
  1436.     A workaround exists, and consists of adding the following to
  1437.     your program:
  1438.  
  1439.     int isinf(double x) { return !finite(x); }
  1440.  
  1441.     This isn't 100% correct, as this doesn't account for NaNs.
  1442.  
  1443. 5.4) I can't get PPP to work between Solaris 2.3 and other platforms.
  1444.  
  1445.     The PPP shipped with Solaris 2.3 doesn't interoperate with
  1446.     other PPP implementations.  Patch #101425 fixes this.
  1447.  
  1448. 5.5) Using compat mode for passwd doesn't work in 2.3?
  1449.  
  1450.     You need patch #101448.
  1451.  
  1452. 5.6) Why do I get __builtin_va_alist or __builtin_va_arg_incr undefined?
  1453.  
  1454.     You're using gcc without properly installing the gcc fixed
  1455.     include files.  Or you ran fixincludes after installing gcc
  1456.     w/o moving the gcc supplied varargs.h and stdarg.h files
  1457.     out of the way and moving them back again later.  This often
  1458.     happens when people install gcc from a binary distribution.
  1459.     If there's a tmp directory in gcc's include directory, fixincludes
  1460.     didn't complete.  This can happen when you run fixincludes in
  1461.     the background w/o redirecting I/O.
  1462.  
  1463.     Another possible cause is using ``gcc -I/usr/include.''
  1464.  
  1465. 5.7) My machine hangs during the boot process.  It seems related to ps.
  1466.  
  1467.     When the system boots, the first invocation of ps will try to
  1468.     recreate /tmp/ps_data.  To this end ps scans the /dev tree.
  1469.     Under some circumstances, a loop exists in /dev and ps will
  1470.     run forever.  Most of the time this loop is caused by the symbolic
  1471.     link /dev/bd.off.  While this link usually points to /dev/term/b,
  1472.     it sometimes get truncated and points to /dev instead.
  1473.  
  1474.     Fix: rm -f /dev/bd.off; ln -s /dev/term/b /dev/bd.off
  1475.  
  1476.     Use truss(1) to determine whether this is real the cause of your
  1477.     problem.
  1478.  
  1479.  
  1480. 6. SOFTWARE DEVELOPMENT
  1481.  
  1482. 6.1) Where is the C compiler or where can I get one?
  1483.  
  1484.     Where have you been? :-) Sun has dropped their old K&R C
  1485.     compiler, supposedly to create a market for multiple compiler
  1486.     suppliers to provide better performance and features.  Here
  1487.     are some of the contenders:
  1488.  
  1489.     1) SunPro C:
  1490.  
  1491.     SunPro, SMCC, and various distributors sell a new
  1492.     ANSI-standard C compiler on the unbundled (extra cost)
  1493.     SPARCcompiler/SPARCworks CD-ROM.  There are some other nice
  1494.     tools there too, like a "make tool" and a visual idiff
  1495.     (interactive diff).
  1496.  
  1497.     You have to license and pay per user.  Here's what seems to be
  1498.     their current (June 93) prices per user, in various quantities:
  1499.  
  1500.  SunPro:          Q1      Q2      Q5      Q10     Q20     Q25     Q50    Q100
  1501.  C, no supp       995     995     950     750     700     680     640     600
  1502.  1yr C & supp    1355    1355    1310    1110    1080    1040    1000     960
  1503.  2yr C & supp    1835    1835    1790    1590    1560    1520    1480    1440
  1504.  3yr C & supp    2315    2315    2270    2070    2040    2000    1960    1920
  1505.  
  1506.     (The "no support" price actually includes three months of
  1507.     support under warrantee.  One catch with Sun support is that
  1508.     to get *any* support, you have to pay for support for *all*
  1509.     the users at your site.  The quantity prices are only available
  1510.     in fixed size chunks.  You don't actually buy multiple years
  1511.     up front, but renew each year if desired.)
  1512.  
  1513.     One misfeature is that these tools use a floating license
  1514.     manager, so your whole staff can't use them without paying
  1515.     large sums of money.  Not only that, but as shipped, the tools
  1516.     enforce a 15-minute minimum usage time, to "encourage" you to
  1517.     buy a "floating" license for each and every actual user.  This
  1518.     caused so much screaming and tearing of hair that Sun was
  1519.     forced to fix it.  New compiler releases after May 1993 have a
  1520.     default 5 minute setting, changeable all the way to zero by
  1521.     having the sysadmin edit the "options file".  However, if you
  1522.     set it to zero, the compiler slows down, since it has to talk
  1523.     to the license daemon for every file you compile.  Old
  1524.     compilers have a patch available from SunPro to eliminate the
  1525.     15 minute limit; patch numbers: C: 100966-0x; C++: 100967-0x;
  1526.     Fortran: 100968-0x; Pascal: 100969-0x.  These patches are bulky
  1527.     and are not available at many anonymous ftp sites.
  1528.     If you have support, you can get them from Sun.
  1529.  
  1530.     2) Cygnus GCC:
  1531.  
  1532.     Cygnus Support and the Free Software Foundation make the GNU C
  1533.     compiler for Solaris, a free software product.  Source code
  1534.     and ready-to-run binaries are available by FTP from
  1535.     ftp.uu.net:/vendor/cygnus, or can be installed from the CDware
  1536.     CD (Volume 4 or 5).
  1537.  
  1538.     Like all GNU software, there are no restrictions on who can
  1539.     use it, how many people can use it at a time, what machines it
  1540.     can be run on, or how many copies you can install, run, give
  1541.     away, or sell.
  1542.  
  1543.     Cygnus sells technical support for these tools, under annual
  1544.     support contracts.  Price per user (June 93):
  1545.  
  1546.  Cygnus:          Q1      Q2      Q5      Q10     Q20     Q25     Q50    Q100
  1547.  C, no supp         0       0       0       0       0       0       0       0
  1548.  1yr C & supp    1400     700     580     540    ...                      504
  1549.  2yr C & supp    2800    1400    1160    1080    ...                     1008
  1550.  3yr C & supp    4200    2100    1740    1620    ...                     1512
  1551.  
  1552.     (If you get the compiler from one of the free distribution
  1553.     sites, there is no cost but no warrantee.  Cygnus lets you buy
  1554.     support for any number of users, at $500/user after the first
  1555.     two users at $1400.  You don't actually buy multiple years up
  1556.     front, but renew each year if desired.)
  1557.  
  1558.     The Cygnus distribution includes:
  1559.     gcc (ansi C compiler), gdb (good debugger), byacc (yacc repl),
  1560.     flex (lex repl), gprof, makeinfo, texindex, info, patch,
  1561.     cc (a link to gcc)
  1562.  
  1563.     The Cygnus compiler on uunet is starting to show its age a
  1564.     bit.  If you want to compile X11R5, you can get the latest
  1565.     version of GCC in source code, from the usual places
  1566.     (prep.ai.mit.edu or one of the many mirrored copies of it).
  1567.     Build and install that compiler using the Cygnus gcc binaries.
  1568.     Or get tech support from Cygnus; they produce a new version
  1569.     for their customers every three months, and will fix any
  1570.     bug you find.
  1571.  
  1572.     3) Gcc.
  1573.  
  1574.     Gcc is available from the GNU archives in source and binary
  1575.     form.  Look in a directory called sparc-sun-solaris2 for
  1576.     binaries.  You need gcc 2.3.3 or later.  You should not use
  1577.     GNU as or GNU ld.  Make sure you run just-fixinc if you use
  1578.     a binary distribution.  Better is to get a binary version and
  1579.     use that to bootstrap gcc from source.
  1580.  
  1581.     4) Info on Apogee, Lucid C, etc will be added if you send us some.
  1582.  
  1583. 6.2) What about the linker, the assembler and make?
  1584.  
  1585.     Solaris ships with everything you need, except for the compiler.
  1586.     All this stuff lives in /usr/ccs/bin and /usr/ccs/lib.
  1587.     If you still can't find it, make sure you have the following
  1588.     packages installed on your system:
  1589.  
  1590.         for tools (sccs, lex, yacc, make, nm, truss, ld, as):
  1591.         SUNWbtool, SUNWsprot, SUNWtoo
  1592.         for libraries & headers:
  1593.         SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
  1594.         for ucb compat:
  1595.         SUNWsra, SUNWsrh
  1596.  
  1597. 6.3) What do I need to compile X11R5?
  1598.  
  1599.     There are several "patch kits" for X11R5 under Solaris 2.1.
  1600.     Most of them require gcc 2.3.3 and you must have
  1601.     run "fixincludes" when you install the gcc software.
  1602.  
  1603.     The recommended patchkit is R5.SunOS5.patch.tar.Z available
  1604.     from ftp.x.org:/contrib.  It works with gcc (2.3.3 or later)
  1605.     and SunPRO C.
  1606.  
  1607. 6.4) What happened to NIT? What new mechanisms exist for low-level network access?  
  1608.  
  1609.     See man page DLPI(7). Try NFSWATCH 4.0 for sample code using DLPI.
  1610.         FTP from harbor.ecn.purdue.edu (128.46.128.76, 128.46.154.76):
  1611.                 pub/davy/nfswatch4.0.tar.Z
  1612.         or gatekeeper.dec.com (16.1.0.2):
  1613.                 pub/net/ip/nfs/nfswatch4.0.tar.Z
  1614.  
  1615.     Better yet, FTP the paper "How to Use DLPI in Solaris 2.x" by
  1616.     Neal Nuckolls of Sun Internet Engineering.  Look in
  1617.     these FTP sites:
  1618.     opcom.sun.ca:/pub/drivers/dlpi/dlpi-spec.ps.gz
  1619.     opcom.sun.ca:/pub/drivers/dlpi/dltest.tar.gz
  1620.     opcom.sun.ca:/pub/drivers/dlpi/howtouseDLPI.ps.gz
  1621.  
  1622.     ftp.ui.org:/pub/osi/dlpi.ps
  1623.     ftp.ui.org:/pub/osi/npi.ps
  1624.     ftp.ui.org:/pub/osi/tpi.ps
  1625.  
  1626. ll the functions gone that used to be in libc?
  1627.  
  1628.     The C library has exploded.  The manual page may give an
  1629.     indication where to find a specific function.
  1630.  
  1631.     Those libraries are essentially split over two directories:
  1632.  
  1633.         /usr/lib /usr/ccs/lib.
  1634.  
  1635.     Important libraries:
  1636.  
  1637.         /usr/lib:
  1638.         libsocket    - socket functions
  1639.         libnsl        - network services library
  1640.  
  1641.         /usr/ccs/lib:
  1642.         libgen        - regular expression functions
  1643.         libcurses    - the SysVR4 curses/terminfo library.
  1644.  
  1645.     See Intro(3) for more details.
  1646.  
  1647. 6.6) I'm still missing some functions: bcopy, bzero and friends.
  1648.  
  1649.     They are in /usr/ucblib/libucb.so.  The b* functions
  1650.     are replaced with the ANSI-C equivalents.  Look
  1651.     in the Solaris porting FAQ for more details.
  1652.  
  1653. 6.7) Can I use the source compatibility package to postpone porting?
  1654.  
  1655.     Not really.  The Source code compatibility package is
  1656.     compatible with BSD 4.2, not SunOS 4.1.x.  The consensus
  1657.     is that the library is broken beyond usability.
  1658.  
  1659. 6.8) Why doesn't readdir work?
  1660.  
  1661.     You're probably linking with libucb and didn't read the
  1662.     previous question.  (The readdir in libucb.so wants you to
  1663.     include sys/dir.h, many SunOS 4.1.x programs included
  1664.     <dirent.h>, consequently, you're mixing native <dirent.h>
  1665.     struct dirent with libucb readdir().
  1666.  
  1667. 7. ACKNOWLEDGEMENTS
  1668.     Most of this material is either written by me or sent to me
  1669.     directly. Some of it is cribbed shamelessly from USENET postings
  1670.     in several groups.
  1671.  
  1672.     Thanks to all people who contributed to this FAQ,
  1673.     you know who you are.  The list is too long to be included
  1674.     in this FAQ.
  1675.  
  1676. --- End of Solaris 2.x FAQ -- Maintained by Casper Dik <casper@fwi.uva.nl> ---
  1677.  
  1678.